﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace mesoBoard.Data
{
    public interface IThemeValidation
    {
        [Required(ErrorMessage="Enter a theme name")]
        string Name { get; set; }

        [Required(ErrorMessage = "Enter a display name")]
        string DisplayName { get; set; }

        [Required(ErrorMessage = "Enter a folder name")]
        string FolderName { get; set; }
    }


    [MetadataType(typeof(IThemeValidation))]
    public partial class Theme : IThemeValidation { } 


}
